package com.neu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neu.po.ResponseResult;
import com.neu.service.MenuService;

@RestController
@RequestMapping("menu")
public class MenuController {
	
	@Autowired
	private MenuService menuService;
	
	@RequestMapping("getroleid")
	public ResponseResult getroleid(int roleid){
			ResponseResult result = new ResponseResult();
			result.setData(menuService.getroleid(roleid));
			
			return result;
	}
}
